package com.lr.server.demo2;

public class LoginServlet extends Servlet{

	@Override
	public void doGet(Request req, Response rep) {
		rep.createResponseContext("<html><p>hello world!!!");
		rep.createResponseContext(req.getParmerter("fname")+"</p></html>");
//		String name = req.getParmerter("fname");
//		String pwd = req.getParmerter("lname");
//		login(name,pwd);
	}
	
	public boolean login(String name,String pwd){
		if(name.equals("aaaa")){
			return true;
		}
		return false;
	}

	@Override
	public void doPost(Request req, Response rep) {
		
	}

}
